-- GENERATED SPELL FOR [Warpwood Tangler] --


function spell0_11464(pUnit, Event) --@Entangling Roots,n/a--
pUnit:FullCastSpellOnTarget(22415,pUnit:GetMainTank ())
pUnit:RegisterEvent('Sorts_11464', 11500, 1)
end

function spell1_11464(pUnit, Event) --@Lightning Bolt,n/a--
pUnit:FullCastSpellOnTarget(22414,pUnit:GetMainTank ())
pUnit:RegisterEvent('Sorts_11464', 2000, 1)
end

function Sorts_11464(pUnit, Event)
local choix_sorts_11464 = math.random(0, 1)
if choix_sorts_11464 == 0 then
pUnit:RegisterEvent('spell0_11464', 1, 1)
end
if choix_sorts_11464 == 1 then
pUnit:RegisterEvent('spell1_11464', 1, 1)
end
end

function mob11464_Action(pUnit, Event)
pUnit:RegisterEvent('Sorts_11464', math.random(1500, 3000), 1)
end

function mob11464_Leave(pUnit, Event)
--pUnit:RemoveEvents();--
end

function mob11464_Kill(pUnit, Event)
--pUnit:RemoveEvents();--
end

function mob11464_Die(pUnit, Event)
pUnit:RemoveEvents();
end

RegisterUnitEvent(11464, 1, 'mob11464_Action')
RegisterUnitEvent(11464, 2, 'mob11464_Leave')
RegisterUnitEvent(11464, 3, 'mob11464_Kill')
RegisterUnitEvent(11464, 4, 'mob11464_Die')
